import request from '@/utils/request'

// 查询岗位列表

// 查询单位列表
export function listUnit(query) {
  return request({
    url: '/storage/unitSe/getList',
    method: 'get',
    params: query
  })
}
export function getUnitById(unitId) {
  return request({
    url: '/storage/unitSe/' + unitId,
    method: 'get'
  })
}
//新增
export function addUnit(data) {
  return request({
    url: '/storage/unitSe/addUnit',
    method: 'post',
    data: data
  })
}
//修改
export function updateUnit(data) {
  return request({
    url: '/storage/unitSe/updateUnit',
    method: 'post',
    data: data
  })
}
//获得数据总条数
export function getTotal(query) {
  return request({
    url: '/storage/unitSe/getTotal',
    method: 'get',
    params: query
  })
}

export function delUnit(unitId) {
  return request({
    url: '/storage/unitSe/' + unitId,
    method: 'delete'
  })
}





